import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/call/api/` + url, ...arg)
export default {
	setCallUser(callId) {
		return request('setCallUser/' + callId, null, 'get')
	},
	startListen(agentExtNo) {
		return request('listen/start/' + agentExtNo, '', 'get')
	},
	stopListen(agentExtNo) {
		return request('listen/stop/' + agentExtNo, '', 'get')
	},
	setCallNumber(callNumber) {
		return request('setCallNumber/' + callNumber, null, 'get')
	},
	getCallNumber() {
		return request('getCallNumber', null, 'get')
	}
}
